import { http } from '@/utils/request'
import type { CategoryTopItem } from '@/types/category'

// 分类列表-小程序
/**
 * @returns Promise<CategoryTopItem[]>
 */
export const getCateryTopAPI = () => {
    return http<CategoryTopItem[]>({
        url: '/category/top',
        method: 'GET',
    })
}